package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 折旧方法管理对象 financial_depreciation_method
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public class DepreciationMethod extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 折旧方法ID */
    private Long id;

    /** 折旧方法编码 */
    @Excel(name = "折旧方法编码")
    private String methodCode;

    /** 折旧方法名称 */
    @Excel(name = "折旧方法名称")
    private String methodName;

    /** 折旧年限 */
    @Excel(name = "折旧年限")
    private Long depreciationYear;

    /** 折旧期限 */
    @Excel(name = "折旧期限")
    private Long depreciationPeriod;

    /** 年折旧率 */
    @Excel(name = "年折旧率")
    private BigDecimal annualRate;

    /** 每期折旧率 */
    @Excel(name = "每期折旧率")
    private BigDecimal periodRate;

    /** 状态（0启用 1禁用） */
    @Excel(name = "状态", readConverterExp = "0=启用,1=禁用")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMethodCode(String methodCode) 
    {
        this.methodCode = methodCode;
    }

    public String getMethodCode() 
    {
        return methodCode;
    }
    public void setMethodName(String methodName) 
    {
        this.methodName = methodName;
    }

    public String getMethodName() 
    {
        return methodName;
    }
    public void setDepreciationYear(Long depreciationYear) 
    {
        this.depreciationYear = depreciationYear;
    }

    public Long getDepreciationYear() 
    {
        return depreciationYear;
    }
    public void setDepreciationPeriod(Long depreciationPeriod) 
    {
        this.depreciationPeriod = depreciationPeriod;
    }

    public Long getDepreciationPeriod() 
    {
        return depreciationPeriod;
    }
    public void setAnnualRate(BigDecimal annualRate) 
    {
        this.annualRate = annualRate;
    }

    public BigDecimal getAnnualRate() 
    {
        return annualRate;
    }
    public void setPeriodRate(BigDecimal periodRate) 
    {
        this.periodRate = periodRate;
    }

    public BigDecimal getPeriodRate() 
    {
        return periodRate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("methodCode", getMethodCode())
            .append("methodName", getMethodName())
            .append("depreciationYear", getDepreciationYear())
            .append("depreciationPeriod", getDepreciationPeriod())
            .append("annualRate", getAnnualRate())
            .append("periodRate", getPeriodRate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
